﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Forget.HRBLL.Logical;

namespace HRWebSite.Employee
{
    public partial class EditServices : BasePage
    {
        protected override void Page_Load(object sender, EventArgs e)
        {
            this.HRLimits = Limits.UserInfo;
            base.Page_Load(sender, e);
            this.AddCard();
        }

        private void AddCard()
        {
            if (WorkingLogical.AddCard(this.HRUser.NumberID))
                Response.Write("<script>alert('打卡成功！');location='../default.aspx'</script>");
            else
                Response.Write("<script>alert('打卡失败！');location='../default.aspx'</script>");
        }
    }
}